package com.pg.auth.model.dto.sysmenu;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysMenu;
import com.pg.auth.model.dto.sysmenu.SysMenuVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysMenuConvertor {

    SysMenuConvertor INSTANCE = Mappers.getMapper(SysMenuConvertor.class);

    SysMenu dtoToDB(SysMenuDTO sysMenuDTO);

    SysMenuVO dbToVO(SysMenu sysMenu);

    List<SysMenuVO> listDbToVO(List<SysMenu> list);

    List<SysMenuTreeVO> listDbToTreeVO(List<SysMenu> sysMenuList);
}
